﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace CsDbHelper
{
    interface ISqlDbHelper
    {
        int ExcuteNonQuery();
        int ExcuteNonQuery(System.Data.SqlClient.SqlCommand sqlComm);

        T ExecuteScalar<T>();
        T ExecuteScalar<T>(System.Data.SqlClient.SqlCommand sqlComm);

        DataTable FillDataTable();
        DataTable FillDataTable(System.Data.SqlClient.SqlCommand sqlComm);

        DataSet FillDataSet();
        DataSet FillDataSet(System.Data.SqlClient.SqlCommand sqlComm);

        SqlDbHelper From(string sqlStr);
    }
}
